/*
 * ColaCircular.h
 *
 *  Created on: 03/06/2014
 *      Author: ruben
 */

#ifndef COLACIRCULAR_H_
#define COLACIRCULAR_H_
#include <iostream>
#include <string>
using namespace std;
//typedef void* Dato;
/*
#define MAX 32
*/

class ColaCircular {
public:
	ColaCircular(unsigned int tamanio);
	virtual ~ColaCircular();
	char pop();
	void push(char c);
	unsigned int siguiente(unsigned int valor);
	bool estaVacio();
	bool estaLleno();
	string emitString();
	void borrarDatos();
	string getString(unsigned pos,unsigned longitud);

private:
	char *vector;
	unsigned int inicio;
	unsigned int fin;
	unsigned int tamanio;
};

#endif /* COLACIRCULAR_H_ */
